package com.tancire.net.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 会员钱包流水对象 purse_log
 *
 * @author chenchao
 * @date 2023-11-20
 */
public class PurseLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 钱包ID
     */
    @Excel(name = "钱包ID")
    private Long purseId;

    /**
     * 会员ID
     */
    @Excel(name = "会员ID")
    private Long userId;

    /**
     * 会员昵称
     */
    @Excel(name = "会员昵称")
    private String userName;

    /**
     * 支出类型 0 支出 1 收入
     */
    @Excel(name = "支出类型 0 支出 1 收入")
    private Integer expenseType;

    /**
     * 使用类型（字典）
     */
    @Excel(name = "使用类型", readConverterExp = "字=典")
    private String useType;

    /**
     * 支出/收入金额
     */
    @Excel(name = "支出/收入金额")
    private BigDecimal useAmount;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String useRemarks;

    /**
     * 0 正常  1 删除  真删除，字段保留
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setPurseId(Long purseId) {
        this.purseId = purseId;
    }

    public Long getPurseId() {
        return purseId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setExpenseType(Integer expenseType) {
        this.expenseType = expenseType;
    }

    public Integer getExpenseType() {
        return expenseType;
    }

    public void setUseType(String useType) {
        this.useType = useType;
    }

    public String getUseType() {
        return useType;
    }

    public void setUseAmount(BigDecimal useAmount) {
        this.useAmount = useAmount;
    }

    public BigDecimal getUseAmount() {
        return useAmount;
    }

    public void setUseRemarks(String useRemarks) {
        this.useRemarks = useRemarks;
    }

    public String getUseRemarks() {
        return useRemarks;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("purseId", getPurseId())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("expenseType", getExpenseType())
                .append("useType", getUseType())
                .append("useAmount", getUseAmount())
                .append("useRemarks", getUseRemarks())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
